package com.zwps.biz.dal.db.object;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import java.io.Serializable;
import java.math.BigDecimal;
import java.util.Date;

import com.zwps.biz.dal.constant.TableNameConstant;
import lombok.Data;

/**
 * 综合水平位移表
 * @TableName dsm_dfr_srhrds
 */
@TableName(TableNameConstant.DSM_DFR_SRHRDS)
@Data
public class DsmDfrSrhrdsDO implements Serializable {
    /**
     * 
     */
    @TableId(type = IdType.AUTO)
    private Long id;

    /**
     * 水库代码
     */
    private String rscd;

    /**
     * 水工建筑物编号
     */
    private String hycncd;

    /**
     * 测点编号
     */
    private String mpcd;

    /**
     * 测量时间
     */
    private Date mstm;

    /**
     * X向水平位移
     */
    private BigDecimal xhrds;

    /**
     * Y向水平位移
     */
    private BigDecimal yhrds;

    /**
     * z方向的值
     */
    private BigDecimal zhrds;

    /**
     * 
     */
    private Integer status;

    /**
     * 是否为仪器故障数据 1=是 0=否
     */
    private Short isError;

    /**
     * 
     */
    private Short errorState;

    /**
     * 手工录入值
     */
    private BigDecimal originalXhrds;

    /**
     * 手工录入值
     */
    private BigDecimal originalYhrds;

    /**
     * 手工录入值
     */
    private BigDecimal originalZhrds;

    @TableField(exist = false)
    private static final long serialVersionUID = 1L;

    @Override
    public boolean equals(Object that) {
        if (this == that) {
            return true;
        }
        if (that == null) {
            return false;
        }
        if (getClass() != that.getClass()) {
            return false;
        }
        DsmDfrSrhrdsDO other = (DsmDfrSrhrdsDO) that;
        return (this.getId() == null ? other.getId() == null : this.getId().equals(other.getId()))
            && (this.getRscd() == null ? other.getRscd() == null : this.getRscd().equals(other.getRscd()))
            && (this.getHycncd() == null ? other.getHycncd() == null : this.getHycncd().equals(other.getHycncd()))
            && (this.getMpcd() == null ? other.getMpcd() == null : this.getMpcd().equals(other.getMpcd()))
            && (this.getMstm() == null ? other.getMstm() == null : this.getMstm().equals(other.getMstm()))
            && (this.getXhrds() == null ? other.getXhrds() == null : this.getXhrds().equals(other.getXhrds()))
            && (this.getYhrds() == null ? other.getYhrds() == null : this.getYhrds().equals(other.getYhrds()))
            && (this.getZhrds() == null ? other.getZhrds() == null : this.getZhrds().equals(other.getZhrds()))
            && (this.getStatus() == null ? other.getStatus() == null : this.getStatus().equals(other.getStatus()))
            && (this.getIsError() == null ? other.getIsError() == null : this.getIsError().equals(other.getIsError()))
            && (this.getErrorState() == null ? other.getErrorState() == null : this.getErrorState().equals(other.getErrorState()))
            && (this.getOriginalXhrds() == null ? other.getOriginalXhrds() == null : this.getOriginalXhrds().equals(other.getOriginalXhrds()))
            && (this.getOriginalYhrds() == null ? other.getOriginalYhrds() == null : this.getOriginalYhrds().equals(other.getOriginalYhrds()))
            && (this.getOriginalZhrds() == null ? other.getOriginalZhrds() == null : this.getOriginalZhrds().equals(other.getOriginalZhrds()));
    }

    @Override
    public int hashCode() {
        final int prime = 31;
        int result = 1;
        result = prime * result + ((getId() == null) ? 0 : getId().hashCode());
        result = prime * result + ((getRscd() == null) ? 0 : getRscd().hashCode());
        result = prime * result + ((getHycncd() == null) ? 0 : getHycncd().hashCode());
        result = prime * result + ((getMpcd() == null) ? 0 : getMpcd().hashCode());
        result = prime * result + ((getMstm() == null) ? 0 : getMstm().hashCode());
        result = prime * result + ((getXhrds() == null) ? 0 : getXhrds().hashCode());
        result = prime * result + ((getYhrds() == null) ? 0 : getYhrds().hashCode());
        result = prime * result + ((getZhrds() == null) ? 0 : getZhrds().hashCode());
        result = prime * result + ((getStatus() == null) ? 0 : getStatus().hashCode());
        result = prime * result + ((getIsError() == null) ? 0 : getIsError().hashCode());
        result = prime * result + ((getErrorState() == null) ? 0 : getErrorState().hashCode());
        result = prime * result + ((getOriginalXhrds() == null) ? 0 : getOriginalXhrds().hashCode());
        result = prime * result + ((getOriginalYhrds() == null) ? 0 : getOriginalYhrds().hashCode());
        result = prime * result + ((getOriginalZhrds() == null) ? 0 : getOriginalZhrds().hashCode());
        return result;
    }

    @Override
    public String toString() {
        StringBuilder sb = new StringBuilder();
        sb.append(getClass().getSimpleName());
        sb.append(" [");
        sb.append("Hash = ").append(hashCode());
        sb.append(", id=").append(id);
        sb.append(", rscd=").append(rscd);
        sb.append(", hycncd=").append(hycncd);
        sb.append(", mpcd=").append(mpcd);
        sb.append(", mstm=").append(mstm);
        sb.append(", xhrds=").append(xhrds);
        sb.append(", yhrds=").append(yhrds);
        sb.append(", zhrds=").append(zhrds);
        sb.append(", status=").append(status);
        sb.append(", isError=").append(isError);
        sb.append(", errorState=").append(errorState);
        sb.append(", originalXhrds=").append(originalXhrds);
        sb.append(", originalYhrds=").append(originalYhrds);
        sb.append(", originalZhrds=").append(originalZhrds);
        sb.append(", serialVersionUID=").append(serialVersionUID);
        sb.append("]");
        return sb.toString();
    }
}